﻿namespace Reborn.IdentityServer4.Admin.Api.Helpers;

public static class UrlHelpers
{
    public static string QueryStringSafeHash(string hash)
    {
        hash = hash.Replace('+', '-');
        return hash.Replace('/', '_');
    }

    public static string QueryStringUnSafeHash(string hash)
    {
        hash = hash.Replace('-', '+');
        return hash.Replace('_', '/');
    }
}